<template>
  <div class="SwipePage">
    <van-swipe :autoplay="3000" indicator-color="#fff">
      <van-swipe-item v-for="(item, index) in images" :key="index">
        <img :src="item" />
      </van-swipe-item>
    </van-swipe>
  </div>
</template>

<script lang="ts">
import { Vue, Component, Prop } from "vue-property-decorator";
import { Swipe, SwipeItem } from "vant";

Vue.use(Swipe);
Vue.use(SwipeItem);
@Component({})
export default class SwipePage extends Vue {
  @Prop() images?: any[];
}
</script>

<style lang="scss">
.SwipePage {
  width: 100%;
  img {
    width: 100%;
    height: 300px;
    display: block;
  }
}
</style>
